package seg.tef4.whms.domain;

import java.util.Date;

/**
 * 【请填写功能名称】对象 t_equipment
 *
 * @author ruoyi
 * @date 2023-06-26
 */
public class TEquipment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 序号
     */
    private Long num;

    /**
     * 设备编号
     */
    private String serialNo;

    /**
     * 设备名称
     */
    private String equipName;

    /**
     * 产线
     */
    private String line;

    /**
     * 工位
     */
    private String station;

    /**
     * 数量
     */
    private Long quantity;

    /**
     * 单位
     */
    private String unit;

    /**
     * 0 未使用 1使用
     */
    private Long status;

    /**
     * $column.columnComment
     */
    private Date sopTime;

    /**
     * 是否删除  0正常  2删除
     */
    private String delFlag;

    public String getSopTimeStr() {
        return sopTimeStr;
    }

    public void setSopTimeStr(String sopTimeStr) {
        this.sopTimeStr = sopTimeStr;
    }

    private String sopTimeStr;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setNum(Long num) {
        this.num = num;
    }

    public Long getNum() {
        return num;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setEquipName(String equipName) {
        this.equipName = equipName;
    }

    public String getEquipName() {
        return equipName;
    }

    public void setLine(String line) {
        this.line = line;
    }

    public String getLine() {
        return line;
    }

    public void setStation(String station) {
        this.station = station;
    }

    public String getStation() {
        return station;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public Long getQuantity() {
        return quantity;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnit() {
        return unit;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public void setSopTime(Date sopTime) {
        this.sopTime = sopTime;
    }

    public Date getSopTime() {
        return sopTime;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public String getStatusStr() {
        if(this.status == 1)
            return "使用";
        else
            return "未使用";
    }
}
